package com.cdel.akka.AkkainJAVA.demo1;

import akka.actor.UntypedActor;

/**
 * 打印招呼
 *
 * @author SUN
 * @version 1.0
 * @Date 16/1/6 21:45
 */
public class GreetPrinterActor extends UntypedActor {
	@Override
	public void onReceive(Object message) throws Exception {
		if (message instanceof Greeting)
			System.out.println(((Greeting) message).message);
	}
}